package org.liuqm.example;

import org.liuqm.example.mapper.ISysRoleMapper;
import org.liuqm.example.mapper.ISysUserMapper;
import org.liuqm.example.mapper.impl.SysRoleMapperImpl;
import org.liuqm.example.mapper.impl.SysRoleOracleMapperImpl;

public class RoleMapperFactory {


    public static ISysRoleMapper getRoleMapper(String databaseType) {
        switch (databaseType) {
            case "mysql":
                return new SysRoleMapperImpl();

            case "oracle":
                return new SysRoleOracleMapperImpl();

            default:
                return new SysRoleMapperImpl();
        }
    }
}
